
var sysCodeService = angular.module('sysCodeService', ['anajaxService']);
sysCodeService.factory('sysCode', function(anajax) {
	var operate = {};
	var result={};
	operate.getResult=function(){
		return result;
	}
	operate.getAllCode = function(params,successFun) {
		var url = commonutil.actionPath + '/common/getallcode';
		anajax.doajax(url, params, function(data) {
			if (data) {
				result=data;
				successFun();
			} else {
				alert("获取失败");
			}
		});
	};
	
	
	return operate;
});


